// Copyright (C) joyinter
// All rights reserved.
// 
// Author : dengxinguo
// Date   : 2004-11-21


#pragma once

#include "listview.h"



class CCoolMenuItem : public CJoyListViewItem
{
protected:
    virtual void CM_MouseLeave();
    virtual void CM_MouseHover();
    virtual void CM_Mouse(MouseMessage msg, const CPoint& pt);
    virtual void CM_Draw(Graphics& graph);
public:
	CString m_strName;
	int m_ID;
    CCoolMenuItem();
    virtual ~CCoolMenuItem();


   
};

class CCoolMenuList :
    public CJoyListView
{
	DECLARE_DYNAMIC(CCoolMenuList)
protected:
    
    friend class CCoolMenuItem;

    

    static CCoolMenuList* m_hookList;
    static HHOOK    m_mouseHook;
    static LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam);


public:
    CCoolMenuList(void);
    virtual ~CCoolMenuList(void);

   

public:
    DECLARE_MESSAGE_MAP()
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
    afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
    afx_msg void OnSize(UINT nType, int cx, int cy);
    afx_msg void OnClose();
};



